{extend name="/public/admin" /}
{block name="main"}
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
		<div class="row">
			<ol class="breadcrumb">
				<li><a href="/59a3albvcwco"><span class="glyphicon glyphicon-home"></span></a></li>
				<li>轮播图管理</li>
				<li class="active">轮播图列表</li>
			</ol>
		</div><!--/.row-->

		<div class="row" style="margin-top: 1em;">
			<div class="col-lg-12">
				<div class="panel panel-default">
					<div class="panel-heading">轮播图列表</div>
					<div class="panel-body">
						<div class="col-md-12">
							<table class="table">
								<thead>
								<tr>
									<th>Id</th>
									<th>ImgUrl</th>
									<th>Status</th>
									<th>Operation</th>
								</tr>
								</thead>
								<tbody>

								{volist name="sowingData" id="vo"}
								<tr>
									<th scope="row">{$vo.id}</th>
									<td>
										<a href="{$vo['sowing_img']}" target="_blank">点击查看</a>
									</td>
									<td>
										{eq name="$vo['status']" value="0"}<span id="<?php echo 'a'.$vo['id'] ?>">已禁用</span>{/eq}
										{eq name="$vo['status']" value="1"}<span id="<?php echo 'a'.$vo['id'] ?>">已启用</span>{/eq}
									</td>
									<td>
										<a href="/9iva48fz05s8s4kg4wo0/<?php echo base64_encode($vo['id']) ?>">修改</a> |
										{eq name="$vo['status']" value="0"}<a id="<?php echo 's'.$vo['id'] ?>" onclick="statusOperationAjax(this)" class="status_operation" data-id="{$vo.id}" href='#'>点击启用</a>{/eq}
										{eq name="$vo['status']" value="1"}<a id="<?php echo 's'.$vo['id'] ?>" onclick="statusOperationAjax(this)" class="status_operation" data-id="{$vo.id}" href='#'>点击禁用</a>{/eq}

									</td>
								</tr>
								{/volist}
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div><!-- /.col-->
		</div>
	</div>	<!--/.main-->
{/block}
